package com.aplana.ccsd.service;

import info.magnolia.module.blossom.dialog.TabBuilder;

import java.util.List;

import javax.jcr.Node;
import javax.jcr.PathNotFoundException;
import javax.jcr.RepositoryException;

import com.aplana.ccsd.model.Vendor;
import com.aplana.ccsd.model.VendorMenuItem;


public interface VendorService {

	/**
	 * Получить вендора
	 */
	Vendor getVendor(Node node);
	
	void addVendorDialogControls(TabBuilder tabBuilder);
	void addVendorsMenuDialogControls(TabBuilder tabBuilder);
	
	List<VendorMenuItem> getVendorsMenu(Node node) throws PathNotFoundException, RepositoryException;
}
